package com.FaxFreeOnline.server.commons;

public final class ReturnType {
	
	public static final ReturnType SUCCESS = new ReturnType("SUCCESS");
	public static final ReturnType ERROR = new ReturnType("ERROR");
	
	private String response;
	
	public ReturnType(String response){
		this.response=response;
	}

	public String getResponse(){
		return response;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		ReturnType other = (ReturnType) obj;
		if (response == null) {
			if (other.response != null)
				return false;
		} else if (!response.equals(other.response))
			return false;
		return true;
	}
	
	


	
}
